<template>
  <div>
    <div class="header-container">
      <div class="width-conatiner">
        {{ $route.name == "cart" ? "我的购物车" : "支付中心" }}
      </div>
    </div>
    <el-card class="table-container">
      <router-view></router-view>
    </el-card>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {},
  mounted() {},
};
</script>
<style lang="scss" scoped>
.header-container {
  height: 160px;
  background: url("~@/assets/img/cart/cart-header-bg.jpg");
  .width-conatiner {
    width: 1152px;
    margin: 0 auto;
    font-size: 32px;
    line-height: 115px;
    padding-left: 35px;
    color: #07111b;
    font-weight: 200;
  }
}
.table-container {
  width: 1152px;
  position: absolute;
  top: 0;
  border-radius: 10px;
  left: 0;
  right: 0;
  margin: auto;
  margin-top: 185px;
}
</style>